package models;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

import play.db.jpa.Blob;
import play.db.jpa.Model;

@Entity
public class TVShow extends Model {

	public String name;
	public int duration;
	public double rate;
	public String creatorName;
	public Cast cast;
	public Soundtrack soundtrack;
	public Blob image;
	
	@OneToMany
	List<Comment> comments;
	@OneToMany
	List<Trailer> trailers;
	@OneToMany
	List<User> whoLikedList;
	@ManyToMany
	List<TVCategory> categories;
		
}
